﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请选择你要执行的服务：炒菜、传菜");
            string a = Console.ReadLine();
            Robot r;
            switch (a)
            {
                case "炒菜":
                    r = new CookRobot("大白兔", Robottype.CookRobot, Vagertabletype.湘菜);
                    r.Working();
                    break;
                case "传菜":                   
                    r = new DeliveryRobot("大灰狼", Robottype.DeliveryRobot, 2);
                    r.Working();
                    break;
                default:
                    Console.WriteLine("请输入正确的数字");
                    r = new CookRobot("大白兔", Robottype.CookRobot, Vagertabletype.湘菜);
                    break;
            }
                     Ider(r);
        }
        public static void Ider(Robot r)
        {
            
        }
    }
}
